﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BlazorPro.BlazorSize;

namespace SageKing.UI.Blazor.SageKingAntDesign.Contracts;

public static class BrowserWindowSizeExts
{
    public static string GetWidthPX(this BrowserWindowSize browser, string unit = "px")
    {
        return $"{browser.Width}{unit}";
    }
    public static string GetHeightPX(this BrowserWindowSize browser, string unit = "px")
    {
        return $"{browser.Height}{unit}";
    }

    public static string GetDoublePX(this double v, string unit = "px")
    {
        return $"{v}{unit}";
    }
}
